﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Electronic_work_order.Model
{
    public class travel_on_business
    {
        [Key]
        public int tbId { get; set; }
        public string tbName { get; set; }
        public DateTime tbTime { get; set; }
        public string tbSY { get; set; }


        //[ForeignKey("OrganizationID")]
        public int OrganizationID { get; set; }
        //public virtual Organization organization { get; set; }


        //[ForeignKey("PositionID")]
        public int PositionID { get; set; }
       // public virtual Position Position { get; set; }


        public string tbBeginAddress { get; set; }
        public string tbEndAddress { get; set; }
        public DateTime tbBeginTime { get; set; }
        public DateTime tbEndTime { get; set; }
        public int tbJTF { get; set; }
        public int tbZSF { get; set; }
        public int tbCYF { get; set; }
        public int tbSum { get; set; }
        public string tbZB { get; set; }

        [ForeignKey("Process_State_ID")]
        public int Process_State_ID { get; set; }//外键状态表
        public virtual Process_application_State Process_Application_State { get; set; }

        [ForeignKey("Aid")]
        public int Aid { get; set; }//申请类型态表
        public virtual application Application { get; set; }

        public string Agency_ID { get; set; }

        //申请编号(tbId)
        //申请人姓名(tbName)
        //申请日期(tbTime)
        //出差事由(tbSY)
        //职位编号()
        //部门编号(deId)
        //开始地点(tbBeginAddress)
        //结束地点(tbEndAddress)
        //开始日期(tbBeginTime)
        //结束日期(tbEndTime)
        //交通费(tbJTF)
        //住宿费(tbZSF)
        //餐饮费(tbCYF)
        //合计费(tbSum)
        //备注(tbZB)
        //外键状态表(Process_State_ID)
    }
}
